package com.ecoolex.discount.sales.core.mapper;

import com.ecoolex.discount.sales.entity.DiscountProduct;
import com.ecoolex.discount.sales.entity.DiscountProductExample;
import com.ecoolex.discount.sales.entity.DiscountProductWithBLOBs;
import com.ecoolex.framework.common.annotation.Description;
import java.util.List;
import org.apache.ibatis.annotations.Param;
import org.springframework.lang.NonNull;

public interface DiscountProductMapper {
    long countByExample(DiscountProductExample example);

    int deleteByExample(DiscountProductExample example);

    int deleteByPrimaryKey(Integer productId);

    int insert(DiscountProductWithBLOBs record);

    int insertSelective(@Param("record") DiscountProductWithBLOBs record, @Param("selective") DiscountProductWithBLOBs.Column ... selective);

    DiscountProduct selectOneByExample(DiscountProductExample example);

    DiscountProductWithBLOBs selectOneByExampleWithBLOBs(DiscountProductExample example);

    List<DiscountProductWithBLOBs> selectByExampleWithBLOBs(DiscountProductExample example);

    List<DiscountProduct> selectByExample(DiscountProductExample example);

    DiscountProductWithBLOBs selectByPrimaryKey(Integer productId);

    DiscountProductWithBLOBs selectByPrimaryKeyWithLogicalDelete(@Param("productId") Integer productId, @Param("andLogicalDeleted") boolean andLogicalDeleted);

    int updateByExampleSelective(@Param("record") DiscountProductWithBLOBs record, @Param("example") DiscountProductExample example, @Param("selective") DiscountProductWithBLOBs.Column ... selective);

    int updateByExampleWithBLOBs(@Param("record") DiscountProductWithBLOBs record, @Param("example") DiscountProductExample example);

    int updateByExample(@Param("record") DiscountProduct record, @Param("example") DiscountProductExample example);

    int updateByPrimaryKeySelective(@Param("record") DiscountProductWithBLOBs record, @Param("selective") DiscountProductWithBLOBs.Column ... selective);

    int updateByPrimaryKeyWithBLOBs(DiscountProductWithBLOBs record);

    int updateByPrimaryKey(DiscountProduct record);

    int batchInsert(@Param("list") List<DiscountProductWithBLOBs> list);

    int batchInsertSelective(@Param("list") List<DiscountProductWithBLOBs> list, @Param("selective") DiscountProductWithBLOBs.Column ... selective);

    int logicalDeleteByExample(@Param("example") DiscountProductExample example);

    int logicalDeleteByPrimaryKey(Integer productId);
}